package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.supervision.dto.JzdxFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 提请撤销缓刑
 *
 * @author wenjie
 * @date 2024-04-25 09:39:53
 */
@Data
@Schema(description = "提请撤销缓刑")
public class SpRevokeProbationCreateDTO implements Serializable {

    /**
     * 矫正人员编号
     */
    @Schema(description = "矫正人员编号")
    @NotBlank(message = "矫正人员编号不能为空")
    private String rybh;

    /**
     * 提请理由
     */
    @Schema(description = "提请理由", example = "01")
    @NotBlank(message = "提请理由不能为空")
    private String tqly;

    /**
     * 司法所申请人
     */
    @Schema(description = "司法所申请人")
    @NotBlank(message = "司法所申请人不能为空")
    private String sqr;

    /**
     * 司法所申请时间
     */
    @Schema(description = "司法所申请时间", example = "2024-04-25 00:00:00")
    @NotNull(message = "司法所申请时间不能为空")
    private LocalDateTime sqsj;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 文书材料
     */
    @Schema(description = "文书材料", example = """
            [{"name": "张三.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    @NotEmpty(message = "相关法律文书材料不能为空")
    private List<JzdxFileDTO> instrumentList;
}